#include <iostream>
#include <string.h>

using namespace std;

struct Student {
    char name[40];
    char address[80];
    char ID_Num[15];
    int dept;
    int major;
};

int main() {
    Student MyStudents[100];

    cout << "输入学生姓名: ";
    cin.getline(MyStudents[0].name, 40);

    cout << "输入学生地址: ";
    cin.getline(MyStudents[0].address, 80);

    cout << "输入学生学号: ";
    cin.getline(MyStudents[0].ID_Num, 15);

    cout << "输入学生学院编号和专业编号: ";
    cin >> MyStudents[0].dept >> MyStudents[0].major;

    cin.ignore(10, '\n');

    cout << "姓名: " << MyStudents[0].name << "\n";
    cout << "地址: " << MyStudents[0].address << "\n";
    cout << "学号: " << MyStudents[0].ID_Num << "\n";
    cout << "学院编号: " << MyStudents[0].dept << "\n";
    cout << "专业编号: " << MyStudents[0].major << "\n";
}